package org.turman.buobaobook.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import org.turman.buobaobook.model.entity.Book;

import java.util.List;

@Mapper
@Repository
public interface BookMapper {
    Book selectById(Long bookId);

    List<Book> selectList();

    void update(Book book);

    void insert(Book book);

    void delete(Long bookId);
}
